package com.demo.common.constant;

import com.jfinal.kit.PropKit;

public class DictKeys {
	public static String cache_user = "user_";
	/**
	 * 系统缓存，主要是权限和数据字典等
	 */
	public static final String cache_name_system = "system";
	
	public static final String SESSION_ADMIN_USER = "admin_user";
	public static final String COOKIE_ADMIN_TOKEN = "admin_user_token";
	public static final String ADMIN_BEFORE_URL = "admin_before_url";
	
	
	/**
	 * # cookie 值的时间
	 */
	public static final int config_maxAge= 1200000;
	/**
	 * 用户登录状态码
	 */
	public static final int login_info_0 = 0;// 用户不存在
	public static final int login_info_1 = 1;// 停用账户
	public static final int login_info_2 = 2;// 密码错误次数超限
	public static final int login_info_3 = 3;// 密码验证成功
	public static final int login_info_4 = 4;// 密码验证失败
	
	
	public static final String FAIL_CODE = "1001";
	public static final String SUCCESS_CODE = "1006";
	public static final String SUCCESS_MSG = "执行成功";
	public static final String FAIL_MSG = "操作失败";
	//
	public static final int max_post_size = 1024*1024*4;
	
	public static String getBaseUrl(){
		System.out.println("url:"+PropKit.use("config.properties").get("base.url"));
		return PropKit.use("config.properties").get("base.url");
		//return PropKit.use("config.properties").get("base.url");
	}

}
